﻿@model crm_data.Customer

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewData["Title"] = "客户信息修改";
}

<section class="content-header">
    <h1>
        @ViewData["Title"]
        <small>advanced tables</small>
    </h1>
    <ol class="breadcrumb">
        <li><a asp-controller="Home" asp-action="Index"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li><a asp-controller="Customers" asp-action="Index">客户管理</a></li>
        <li><a asp-controller="Customers" asp-action="Index">客户信息</a></li>
        <li class="active">客户修改</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-info">
                <div class="box-header with-border">
                    <h3 class="box-title">客户信息</h3>
                </div>
                <div class="box-body">
                    <form asp-action="Edit">
                        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
                        <input type="hidden" asp-for="Id" />
                        <div class="form-group">
                            <label asp-for="RealName" class="control-label"></label>
                            <input asp-for="RealName" class="form-control" />
                            <span asp-validation-for="RealName" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <label asp-for="Sex" class="control-label"></label>
                            <div class="radio"><label><input asp-for="Sex" id="optionsRadios1" value="1" type="radio">男</label></div>
                            <div class="radio"><label><input asp-for="Sex" id="optionsRadios2" value="0" type="radio">女</label></div>
                        </div>
                        <div class="form-group">
                            <label asp-for="Birthday" class="control-label"></label>
                            <input asp-for="Birthday" class="form-control" />
                            <span asp-validation-for="Birthday" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <label asp-for="PhoneNumber" class="control-label"></label>
                            <input asp-for="PhoneNumber" class="form-control" />
                            <span asp-validation-for="PhoneNumber" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <label asp-for="ContactNumber" class="control-label"></label>
                            <input asp-for="ContactNumber" class="form-control" />
                            <span asp-validation-for="ContactNumber" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <label asp-for="CutomerState" class="control-label"></label>
                            <input asp-for="CutomerState" class="form-control" />
                            <span asp-validation-for="CutomerState" class="text-danger"></span>
                        </div>
                        <div class="form-group">
                            <div class="checkbox">
                                <label>
                                    <input asp-for="DelFlag" /> @Html.DisplayNameFor(model => model.DelFlag)
                                </label>
                            </div>
                        </div>
                        @*<div class="form-group">
                                <label asp-for="CreateTime" class="control-label"></label>
                                <input asp-for="CreateTime" class="form-control" />
                                <span asp-validation-for="CreateTime" class="text-danger"></span>
                            </div>
                            <div class="form-group">
                                <label asp-for="UpdateTime" class="control-label"></label>
                                <input asp-for="UpdateTime" class="form-control" />
                                <span asp-validation-for="UpdateTime" class="text-danger"></span>
                            </div>
                            <div class="form-group">
                                <label asp-for="Id" class="control-label"></label>
                                <input asp-for="Id" class="form-control" />
                                <span asp-validation-for="Id" class="text-danger"></span>
                            </div>*@
                        <div class="form-group">
                            <input type="submit" value="保存数据" class="btn btn-primary" />
                            <a asp-action="Index" class="btn btn-default">返回列表</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
